<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
    <base href="<%=basePath%>"/>
    
    <title>我的日程</title>
	<script type="text/javascript" src="js/four_schedule.js"></script>
	<link rel="stylesheet" href="css/four.css" type="text/css"></link>
</head>
<body>

<form action="addSchedule" method="post">
<center>
<div id="addSecheduleDiv" >
	<table width="100%" style="height: 100%"  border="0"  align="center" class="table01">
     <tr > 
    	<td class="td_top_schedule" align="left" width="40%">添加日程   </td>
    	<td class="td_top_closeImg"><label id="closeImg" onclick="hiddenDiv();"><img src="images/google-close.png" /></label></td>
  	</tr>
      <tr>
        <td width="15%" class=td_schedule align="left" colspan="2">&nbsp;&nbsp;&nbsp;日&nbsp;&nbsp;&nbsp;期:&nbsp;&nbsp;&nbsp;
        	<label  id="lblDate"></label>
        	<input type="hidden" name="employee.userId" value="${employee.userId}" />
        	<input type="hidden" id="txtDate" class="input"  name="tickler.TDate"/>
        </td>
      </tr>
      <tr>
        <td class="td_schedule" colspan="2" align="left">&nbsp;&nbsp;&nbsp;内&nbsp;&nbsp;&nbsp;容:&nbsp;&nbsp;&nbsp;
        	<input type="text" id="tkContent" name="tickler.content" class="input" onblur="checkContent()" style="width: 65%"/>
        </td>
      </tr>
      <tr>
        <td  class="td_schedule" colspan="2" align="left" >
        	&nbsp;&nbsp;&nbsp;<input class="scheduleAdd" id="addScheduleBtn" type="submit" disabled="disabled" value="创建日程"></input>
        </td>
      </tr>
  </table>
</div>
</center>
</form>

    <div class="topTitle" >
  		<img src="images/main_28.gif"/>&nbsp;我的日程管理
  	</div>
  <br/>
  
  <table width="95%" border=0 align="center" cellpadding="0" cellspacing="0">
    <tbody>
    <tr> 
    <td  class="td_scheduleNow" colspan="6">
    	<img src="images/arrow_01.gif" height="14" width="14" border="0" align="absmiddle" /> 
    	<a href="shijian.htm" title="查看今日事件"> 
    	<font color=red style="font-size: 13px;font-family: '微软雅黑';">现在是：</font></a>
    	<%	
    		SimpleDateFormat sdf = new SimpleDateFormat("yyyy年 MM月 dd日  EEEE",Locale.CHINA);
    		out.print(sdf.format(new Date())); 
    	%>
    </td>
    <td class="td_scheduleNow" align="right">
    	<select id="testYear" > 
			<option value=2005>2005</option> 
			<option value=2006>2006</option> 
			<option value=2007>2007</option> 
			<option value=2008>2008</option> 
			<option value=2009>2009</option> 
  			<option value=2010>2010</option> 
  			<option selected="selected" value=2011>2011</option>
  			<option value=2012>2012</option>
  			<option value=2012>2013</option>
  			<option value=2012>2014</option>
  			<option value=2012>2015</option>
  			<option value=2012>2016</option>
  			<option value=2012>2017</option>
  			<option value=2012>2018</option>
  		</select>年 
  		<select id="testMonth"> 
  			<option value=0>1</option> 
  			<option value=1>2</option> 
  			<option value=2>3</option> 
  			<option value=3>4</option> 
  			<option value=4>5</option> 
  			<option value=5>6</option> 
  			<option value=6>7</option> 
  			<option value=7>8</option> 
  			<option value=8>9</option> 
  			<option value=9>10</option> 
  			<option value=10>11</option> 
  			<option value=11 selected="selected">12</option>
  		</select>月 
  		<input id="testButton" value="选择日期" class="buttonface" type="button" /> 
    </td>
  </tr>
   <tr> 
    <td  class="td_scheduleNow" colspan="7" align="center">
    	<label id="nowDate">
    	<%
    		SimpleDateFormat sdfm = new SimpleDateFormat("yyyy  年    MM  月");
    		out.print(sdfm.format(new Date())); 
    	%></label>
    </td>
    </tr>
  </tbody>
  </table>
  
<div id=content>
<table class="weekTitle" cellspacing="0" cellpadding="0" width="100%">
  <tbody>
 	 <tr>
        <td width="15%" ><font color=red><b>日</b></font></td>
        <td width="14%" >一</td>
        <td width="14%" >二</td>
        <td width="14%" >三</td>
        <td width="14%" >四</td>
        <td width="14%" >五</td>
        <td width="15%" ><font color=red><b>六</b></font></td>
      </tr>
    </tbody>
  </table>
<table id=render cellspacing="0" cellpadding="0" width="100%">
  <tbody>
  <tr>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td></tr>
  <tr>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div  id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td></tr>
  <tr>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td></tr>
  <tr>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td></tr>
  <tr>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td></tr>
  <tr style="DISPLAY: none">
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div></td>
    <td><span class="dayStyle"></span>
      <div id="pros"></div>
      </td>
    </tr>
    </tbody>
  </table>
  <table class="weekTitle" cellspacing=0 cellpadding=0 width="100%">
  <tbody>
 	 <tr>
        <td width="100%" style="text-align: left" colspan="2"><font color=red><b>*</b></font> 点选单元格添加日程
        	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        	<input id="testButton" value="查看已安排日程" class="buttonface" type="button" onclick="location='getTicklerByUserId?employee.userId=${employee.userId}'" />
        	<input type="hidden" name="employee.userId" value="${employee.userId}" />
        </td>
        <td align="left" width="65%"></td>
    </tr>
    </tbody>
  </table>
</div>
</body>
</html>

